﻿
@{
    Layout = null;
    var id = Request["id"];
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <style>
        img {
            width: 300px;
            margin-left: 33px;
            margin-top: 27px;
        }
    </style>
</head>
<body class="layui-layout-body">
    <img src="@Url.Action("/CreateRechareQr/",new { id=id})" />
</body>
</html>

<script src="~/scripts/jquery-1.10.2.js"></script>
<script>
    //开启轮询查询当前订单
    var s = setInterval(function () {
        $.get("/Recharge/GetRechargeOrderStatus?r=" + new Date().getTime(), function (data) {
            if (data.IsSuccess) {
                if (data.Data == 1) {
                    window.clearInterval(s);
                    window.parent.location.href = "/Recharge/Success";
                }

            } else {
                
            }
        })
    },5000)
</script>
